package cn.com.yunhe.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wjt
 * @since 2019-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CStages implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分期账单id
     */
    @TableId(value = "f_id", type = IdType.AUTO)
    private Integer fId;

    /**
     * 商品总价(由前台获取)
     */
    private Double fPrice;

    /**
     * 定值(用来存放利率)
     */
    private Double fRates;

    /**
     * 分期年数
     */
    private Integer fYears;

    /**
     * 现价(=(商品总价-首付)*利率+商品售价-首付)
     */
    private Double fCurrent;

    /**
     * 首付
     */
    private Double fPayment;

    /**
     * 每月应还(现价/36)
     */
    private Double fNeed;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public Double getfPrice() {
        return fPrice;
    }

    public void setfPrice(Double fPrice) {
        this.fPrice = fPrice;
    }

    public Double getfRates() {
        return fRates;
    }

    public void setfRates(Double fRates) {
        this.fRates = fRates;
    }

    public Integer getfYears() {
        return fYears;
    }

    public void setfYears(Integer fYears) {
        this.fYears = fYears;
    }

    public Double getfCurrent() {
        return fCurrent;
    }

    public void setfCurrent(Double fCurrent) {
        this.fCurrent = fCurrent;
    }

    public Double getfPayment() {
        return fPayment;
    }

    public void setfPayment(Double fPayment) {
        this.fPayment = fPayment;
    }

    public Double getfNeed() {
        return fNeed;
    }

    public void setfNeed(Double fNeed) {
        this.fNeed = fNeed;
    }
}
